package com.gxlevi.composite;

public class Client {
    public static void main(String[] args) {
        University university = new University("清华大学", "清华大学");

        College college1 = new College("计算机学院", "计算机学院");
        College college2 = new College("信息学院", "信息学院");

        college1.add(new Department("信息与安全", "信息与安全"));
        college1.add(new Department("软件工程", "软件工程"));
        college1.add(new Department("计算机科学与技术", "计算机科学与技术"));

        college2.add(new Department("通信工程", "通信工程"));
        college2.add(new Department("信息工程", "信息工程"));

        university.add(college1);
        university.add(college2);

        university.print();
    }
}
